package com.soft.javase.day01.practice;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/15
 */
public class GradeAnalyze {
    private float javaGrade;
    private float cSharpGrade;
    private float mysqlGrade;

    public GradeAnalyze() {
    }

    public GradeAnalyze(float javaGrade, float cSharpGrade, float mysqlGrade) {
        this.javaGrade = javaGrade;
        this.cSharpGrade = cSharpGrade;
        this.mysqlGrade = mysqlGrade;
    }

    public float getJavaGrade() {
        return javaGrade;
    }

    public void setJavaGrade(float javaGrade) {
        this.javaGrade = javaGrade;
    }

    public float getCSharpGrade() {
        return cSharpGrade;
    }

    public void setCSharpGrade(float cSharpGrade) {
        this.cSharpGrade = cSharpGrade;
    }

    public float getMysqlGrade() {
        return mysqlGrade;
    }

    public void setMysqlGrade(float mysqlGrade) {
        this.mysqlGrade = mysqlGrade;
    }

    public void average(){
        System.out.println("三个科目平均值："+(javaGrade+cSharpGrade+mysqlGrade)/3);
    }

    public void sum(){
        System.out.println("三个科目总成绩："+(javaGrade+cSharpGrade+mysqlGrade));
    }

}
